﻿namespace CTP.CRM.Repository.Demo.Entitys
{

    /// <summary>
    /// 测试表
    /// </summary>
    [SugarTable("t_demo")]
    public class DemoEntity : IFullAuditedEntitys
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string Name { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [SugarColumn(ColumnName = "Age")]
        public int Age { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnName = "Description")]
        public string Description { get; set; }

        /// <summary>
        /// 有效标志
        /// </summary>
        [SugarColumn(ColumnName = "EnabledMark")]
        public bool EnabledMark { get; set; }



        [Navigate(NavigateType.OneToMany, nameof(DemoDetailEntity.DemoId))]
        public List<DemoDetailEntity> DemoDetailList { get; set; }

    }

}
